cmake_minimum_required(VERSION 3.21)
project(CUDAstudy)

set(CMAKE_CXX_STANDARD 14)

include_directories(m2c/codegen/lib/add)
include_directories(m2c/codegen/lib/add/examples)
include_directories(m2c/codegen/lib/add/interface)
include_directories(m2c/codegen/lib/CDM)
include_directories(m2c/codegen/lib/CDM/examples)
include_directories(m2c/codegen/lib/CDM/interface)

add_executable(CUDAstudy
        demo01/kernel.cu
        "demo02/Hello GPU.cu"
        demo03/demo03.c
        demo04/kernel.cu
        demo04/matrixmultiply.cu
        demo05/CPUcompute.cpp
        demo06/GPUcompute.cu
        demo06/kernel.cu
        demo07/demo07/CDM.cpp
        demo08/demo08/cdm.cpp
        demo09CDM/demo09/demo09CDM.cpp
        demo10/demo.cpp
        m2c/codegen/lib/add/examples/main.c
        m2c/codegen/lib/add/examples/main.h
        m2c/codegen/lib/add/interface/_coder_add_api.c
        m2c/codegen/lib/add/interface/_coder_add_api.h
        m2c/codegen/lib/add/interface/_coder_add_info.c
        m2c/codegen/lib/add/interface/_coder_add_info.h
        m2c/codegen/lib/add/interface/_coder_add_mex.c
        m2c/codegen/lib/add/interface/_coder_add_mex.h
        m2c/codegen/lib/add/add.c
        m2c/codegen/lib/add/add.h
        m2c/codegen/lib/add/add_initialize.c
        m2c/codegen/lib/add/add_initialize.h
        m2c/codegen/lib/add/add_terminate.c
        m2c/codegen/lib/add/add_terminate.h
        m2c/codegen/lib/add/add_types.h
        m2c/codegen/lib/add/rtwtypes.h
        m2c/codegen/lib/CDM/examples/main.c
        m2c/codegen/lib/CDM/examples/main.h
        m2c/codegen/lib/CDM/interface/_coder_CDM_api.c
        m2c/codegen/lib/CDM/interface/_coder_CDM_api.h
        m2c/codegen/lib/CDM/interface/_coder_CDM_info.c
        m2c/codegen/lib/CDM/interface/_coder_CDM_info.h
        m2c/codegen/lib/CDM/interface/_coder_CDM_mex.c
        m2c/codegen/lib/CDM/interface/_coder_CDM_mex.h
        m2c/codegen/lib/CDM/CDM.c
        m2c/codegen/lib/CDM/CDM.h
        m2c/codegen/lib/CDM/CDM_emxAPI.c
        m2c/codegen/lib/CDM/CDM_emxAPI.h
        m2c/codegen/lib/CDM/CDM_emxutil.c
        m2c/codegen/lib/CDM/CDM_emxutil.h
        m2c/codegen/lib/CDM/CDM_initialize.c
        m2c/codegen/lib/CDM/CDM_initialize.h
        m2c/codegen/lib/CDM/CDM_terminate.c
        m2c/codegen/lib/CDM/CDM_terminate.h
        m2c/codegen/lib/CDM/CDM_types.h
        m2c/codegen/lib/CDM/rtwtypes.h
        m2c/add.m
        m2c/CDM.m
        VScodeTest/test.cpp)
